//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.
// 		VisualNovelToolkit		/_/_/_/_/_/_/_/_/_/.
// Copyright ©2013 - Sol-tribe.	/_/_/_/_/_/_/_/_/_/.
//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.
using UnityEngine;
using UnityEditor;
using System.Collections;
using ViNoToolkit;

[CanEditMultipleObjects]
[ CustomEditor( typeof(SimpleButton))]
public class SimpleButtonInspector : Editor {

	public override void OnInspectorGUI(){
		DrawDefaultInspector();

		if( GUILayout.Button( "Set Default EventReceiver" ) ){
			ViNoEventManager em = GameObject.FindObjectOfType(typeof(ViNoEventManager))  as ViNoEventManager;
			( target as SimpleButton ).eventReceiver = em.gameObject;
		}

	}

}
